<?php
/*
 * filter thematic_postfooter
 */
function filter_thematic_postfooter($postfooter) {
	if (is_single()) {
		if (function_exists('st_makeEntries')) {
			echo '<p class="share-this">';
			echo st_makeEntries();
			echo '</p><!--#share-this-->';
		}
		echo '<div id="about_author" class="author">';
		global $post;
		if($post && $post->ID){
			echo get_avatar($post->post_author);
			$author = get_userdata($post->post_author);
			echo '<p class="author-name"><span class="about-label">' . __('About: ', DOMAIN_TRANS). '</span>';
			echo $author->display_name;
			echo '</p><!--.author-name-->';
			echo '<p class="author-url"><span class="url-label">' . __('Website: ', DOMAIN_TRANS). '</span>';
			echo '<a href="' .$author->user_url . '" title="" target="_blank">';
			echo $author->user_url;
			echo '</a>';
			echo '</p><!--.author-url-->';
			echo '<p class="author-desc">';
			echo $author->description;
			echo '</p><!--.author-desc-->';
		}
		echo '</div><!-- #about-author -->';
		echo '<p class="single-sep"></p>';
		return '';
	} else
		return $postfooter;
}
add_filter('thematic_postfooter', 'filter_thematic_postfooter');

/*
 * childtheme override nav below
 */
function childtheme_override_nav_below() {
	if (is_single()) {
		return;
	} else {
?>
		<div id="nav-below" class="navigation">
                <?php if (function_exists('wp_pagenavi')) { ?>
                <?php wp_pagenavi(); ?>
                <?php } else { ?>  
				<div class="nav-previous"><?php next_posts_link(
					__('<span class="meta-nav">&laquo;</span> Older posts',
							'thematic'))
										  ?></div>
				<div class="nav-next"><?php previous_posts_link(
															  __(
																	  'Newer posts <span class="meta-nav">&raquo;</span>',
																	  'thematic'))
									  ?></div>
				<?php } ?>
		</div>	
<?php
	}
}

/*
 * filter the_content, add post_views_count custom field
 */

function add_post_views_count($content){
	if(is_single()){
		echo '<p>adiajdiaodjaiojdajidw</p>';
	}
	return $content;
}
add_filter('the_content', 'add_post_views_count', 1);